<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<table style="width: 100%;">
	<c:choose>
		<c:when
			test="${inviteRankList != null && fn:length(inviteRankList) > 0 }">
			<c:forEach items="${inviteRankList }" var="inviteInfo"
				varStatus="status">
				<c:if test="${status.index < 5 }">
					<tr>
						<td>第${status.index + 1}名</td>
						<td>${fn:substring(inviteInfo.mobile, 0, 3)}****${fn:substring(inviteInfo.mobile, 7, 11)}</td>
					</tr>
				</c:if>
			</c:forEach>
		</c:when>
		<c:otherwise>
			<tr>
				<td>暂无英雄上榜</td>
			</tr>
		</c:otherwise>
	</c:choose>
</table>